package cac.fenjian.resource.inBillQuery.dto;

import java.util.Date;

public class WmsInvInBillHDTO {
    //申请单ID
    private String wmsInvInBillHId;

    //原始单据ID
    private String originalOrderId;

    //申请单号(入库単号）
    private String billNo;

    //单据状态 ^0-编辑中，5-已确认，10-审批通过，15-部分完成，20-已完成，25-已拒绝，30-手工关闭
    private String inStatus;

    //库房ID
    private String wmsInventoryId;
    //机型编码
    private String productCode;
    //批次号
    private String batchNo;
    //申请人工号
    private String applyEmpCode;
    //申请部门编码
    private String applyOrgCode;
    //申请日期
    private Date applyDate;
    //是否退库标记^ N正常入库单，Y库存退返单
    private String retFlag;
    //退库类型^ 0非退返，1自制件退返，2材料退返，3成品退返
    private String retType;
    //退库原因^
    private String retReason;
    //创建人
    private String createdBy;
    //创建时间
    private Date creationDate;
    //最后修改人
    private String lastUpdatedBy;
    //最后修改时间
    private Date lastUpdateDate;
    //最后更新IP
    private String lastUpdateIp;
    //版本
    private  String version;

    public String getWmsInvInBillHId() {
        return wmsInvInBillHId;
    }

    public void setWmsInvInBillHId(String wmsInvInBillHId) {
        this.wmsInvInBillHId = wmsInvInBillHId;
    }

    public String getOriginalOrderId() {
        return originalOrderId;
    }

    public void setOriginalOrderId(String originalOrderId) {
        this.originalOrderId = originalOrderId;
    }

    public String getBillNo() {
        if("".equals(billNo) || billNo == null){
            return "0";
        }
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo == null ? "0" : billNo.trim();
    }

    public String getInStatus() {
        return inStatus;
    }

    public void setInStatus(String inStatus) {
        this.inStatus = inStatus;
    }

    public String getWmsInventoryId() {
        return wmsInventoryId;
    }

    public void setWmsInventoryId(String wmsInventoryId) {
        this.wmsInventoryId = wmsInventoryId;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public String getApplyEmpCode() {
        return applyEmpCode;
    }

    public void setApplyEmpCode(String applyEmpCode) {
        this.applyEmpCode = applyEmpCode;
    }

    public Date getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(Date applyDate) {
        this.applyDate = applyDate;
    }

    public String getRetFlag() {
        if("".equals(retFlag) || retFlag ==null){
            return "N";
        }
        return retFlag;
    }

    public void setRetFlag(String retFlag) {
        this.retFlag = retFlag == null ? "N":retFlag.trim();
    }

    public String getRetType() {
        if ("".equals(retType) || retType ==null){
            return "0";
        }
        return retType;
    }

    public void setRetType(String retType) {
        this.retType = retType ==null?"0":retType.trim();
    }

    public String getRetReason() {
        return retReason;
    }

    public void setRetReason(String retReason) {
        this.retReason = retReason;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public String getLastUpdateIp() {
        return lastUpdateIp;
    }

    public void setLastUpdateIp(String lastUpdateIp) {
        this.lastUpdateIp = lastUpdateIp;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getApplyOrgCode() {
        return applyOrgCode;
    }

    public void setApplyOrgCode(String applyOrgCode) {
        this.applyOrgCode = applyOrgCode;
    }
}
